#ifndef	_OS_EVENT_H
#define	_OS_EVENT_H

#include "..\Global.h"


#define	MAX_EVENT	24



enum
{
	OS_EVENT_KEY1_PRESS=0,
	OS_EVENT_KEY1_RELEASE,
	OS_EVENT_KEY2_PRESS,
	OS_EVENT_KEY2_RELEASE,
	OS_EVENT_KEY3_PRESS,
	OS_EVENT_KEY3_RELEASE,
	OS_EVENT_KEY3_SHORT_PRESS,
	OS_EVENT_KEY3_LONG_PRESS,
	OS_EVENT_KEY3_DOUBLE_CLICK,
	OS_STATE_KEY3_PRESS,
	OS_EVENT_KEY_CHANGE,
	OS_EVENT_USART_RX_TIME_OUT,
	OS_EVENT_PROTOCOL_RECV_OK,
	OS_EVENT_SCENE_LOADING_END,
	OS_EVENT_SCENE_BREATH_END,
	OS_EVENT_SCENE_FADEIN_END,
	OS_EVENT_SCENE_FADEOUT_END,
	OS_EVENT_SCENE_FLASH_END,
	OS_EVENT_SCENE_CHANGE,
	OS_EVENT_SEND_STATE,
	OS_STATE_LED,
};


void	OS_SetEvent(uint8	event);
void	OS_ClrEvent(uint8	event);	
uint8	OS_GetEvent(uint8	event);
void	OS_initEvent(void);
//void	Fun_initEvent(void);
#endif